<?php

namespace app\admin\controller;

use app\common\AdminController;
use app\admin\model\Operate as OperateDB;

class Operate extends AdminController
{

    protected function initialize()
    {
        $this->model = new OperateDB();
    }
    public function list(array $rule = [], array $field = [], array $association = [], array $hidden = [])
    {
        $rule = [
            "logType" => [
                "mode" => "=",
                "field" => "log_type",
            ],
            "ipaddress" => [
                "mode" => "=",
                "field" => "ipaddress",
            ],
            "createTime" => [
                "mode" => "between",
                "field" => "create_time",
            ],
        ];
        return parent::list($rule);
    }
}
